package top.hiai.model.base;

import java.util.Date;

import com.jfinal.plugin.activerecord.IBean;
import com.jfinal.plugin.activerecord.Model;

/**
* @Author www.hiai.top
* @Email  goodsking@163.com
*/

@SuppressWarnings("serial")
public abstract class MessageBase<M extends MessageBase<M>> extends Model<M> implements IBean {
	
	public M setMid(java.lang.Integer mid) {
		set("mid", mid);
		return (M)this;
	}
	
	public java.lang.Integer getMid() {
		return getInt("mid");
	}
	
	public M setContent(java.lang.String content) {
		set("content", content);
		return (M)this;
	}
	
	public java.lang.String getContent() {
		return getStr("content");
	}
	
	@SuppressWarnings("unchecked")
	public M setPublish_date(Date publish_date) {
		set("publish_date", publish_date);
		return (M)this;
	}
	
	public Date getPublish_date() {
		return getDate("publish_date");
	}
	
	public M setUser_id(java.lang.Integer user_id) {
		set("user_id", user_id);
		return (M)this;
	}
	
	public java.lang.Integer getUser_id() {
		return getInt("user_id");
	}
}
